package com.cy.embeddingdemo.config;

import io.minio.MinioClient;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;



@Data
@Configuration
public class MinioConfig {

    private String accessKey = "dYVxbffVTaVHzqsQjMMm";
    private String secretKey = "MC2cgYPPIZ0iap49xZpB5m248y9FuhhZVmB0x9G5";
    private String url = "http://192.168.1.30:9000";
    private String bucketName = "mineru";



    @Bean
    public MinioClient minioClient(){
        return MinioClient.builder()
                .endpoint(url)
                .credentials(accessKey,secretKey)
                .build();
    }


}
